
@if (!(bool)ViewBag.IsDatabaseExist)
{
    <div style="display:inline-block; width:200px;">
    @using(@Ajax.BeginForm(new AjaxOptions() { HttpMethod="Post", UpdateTargetId="UpdatedTarget", Url=@Url.Content("~/DatabaseCreation")}))
    {
        <button >Generate database</button>
    }
    </div>
}
@if ((bool)ViewBag.IsDatabaseExist)
{
    <div style="display:inline-block; width:200px;">
    @using (@Ajax.BeginForm(new AjaxOptions() { HttpMethod = "Post", UpdateTargetId = "UpdatedTarget", Url = @Url.Content("~/DatabaseQuery") }))
    {
        <button >Execute some queries</button>
    }
    </div>
}
<div id="UpdatedTarget"></div>